package com.whatever;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class titleActivity extends Activity implements OnClickListener {

	public Context cxt = this;
	public int[] buttonMap = {
			R.id.button0
	};
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.title);
		
		Button button = (Button)findViewById(R.id.button0);
		button.setOnClickListener(this);
		
		Bundle bundle = getIntent().getExtras();
		String string = bundle.getString("Name");
		
        Toast.makeText(getApplicationContext(), string, Toast.LENGTH_SHORT).show();
	}
	
	public void onClick(View v) {
		Intent intent = new Intent(cxt, PagesActivity.class);
		cxt.startActivity(intent);
	}
}